package com.mzj.saas.mservice.bill.repository;

import com.mzj.saas.mservice.bill.entity.HouseWaitPaymentDetail;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface HouseWaitPaymentDetailRepository extends PagingAndSortingRepository<HouseWaitPaymentDetail, Long>, JpaSpecificationExecutor<HouseWaitPaymentDetail>, JpaRepository<HouseWaitPaymentDetail, Long> {
    HouseWaitPaymentDetail findByExpenseBillIdAndChargeType(Long expenseBillId, Integer chargeType);

    List<HouseWaitPaymentDetail> findByExpenseBillIdIn(List<Long> ids);

    List<HouseWaitPaymentDetail> findByExpenseBillId(Long expenseBillId);
}
